#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void is_run(int year)
{int i = 0;
	int j = 0;
	int flag = 0;
	for (i = 100;i <= 200;i++)
	{
		for (j = 2;j <= i / 2;j++)
		{
			if (i % j == 0)
			{
				flag = 0;
				break;
			}
			else
			{
				flag = 1;
			}
		}
		if (flag == 1)
			printf("%d ", i);
	}
}
int main()
{
	
	int year = 0;
	scanf("%d", &year);
	is_run(year);
	return 0;
}